<template>
  <el-dialog
    class="modify-class"
    width="1200px"
    title="详情"
    visible
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
  >
    <el-form ref="form" :model="moreDialogData" label-width="80px" v-if="moreDialogType == 1">
      <el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="设备代号:">
						<span>{{moreDialogData.deviceCode}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="设备名称:">
						<span>{{moreDialogData.deviceName}}</span>
					</el-form-item>	
				</el-col>
				<el-col :span="6">
					<el-form-item label="设计单位:">
						<span>{{moreDialogData.designOrg}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="生产单位:">
						<span>{{moreDialogData.productionOrg}}</span>
					</el-form-item>	
				</el-col>
      </el-row>
			<el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="齐套单位:">
						<span>{{moreDialogData.matchOrg}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="入库情况:">
						<span>{{moreDialogData.Warehousing}}</span>
					</el-form-item>	
				</el-col>
				<el-col :span="6">
					<el-form-item label="设备编号:">
						<span>{{moreDialogData.deviceNo}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="状态:">
						<span v-if="moreDialogData.stockStatus == 1">已出库</span>
						<span v-else-if="moreDialogData.stockStatus == 0">已入库</span>
						<span></span>
					</el-form-item>	
				</el-col>
      </el-row>
			<el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="入库时间:">
						<span>{{moreDialogData.instockTime}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="入库人:">
						<span>{{moreDialogData.instockOperator}}</span>
					</el-form-item>	
				</el-col>
				<el-col :span="6">
					<el-form-item label="出库时间:">
						<span>{{moreDialogData.outstockTime}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="出库人:">
						<span>{{moreDialogData.outstockOperator}}</span>
					</el-form-item>	
				</el-col>
      </el-row>
			<el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="去向:">
						<span>{{moreDialogData.outstockRemarks}}</span>
					</el-form-item>	
				</el-col>
			</el-row>
    </el-form>
		<el-form ref="form" :model="moreDialogData" label-width="80px" v-if="moreDialogType == 2">
      <el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="系统代号:">
						<span>{{moreDialogData.sysCode}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="系统名称:">
						<span>{{moreDialogData.sysName}}</span>
					</el-form-item>	
				</el-col>
				<el-col :span="6">
					<el-form-item label="系统编号:">
						<span>{{moreDialogData.sysNo}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="当前状态:">
						<span>{{moreDialogData.status}}</span>
					</el-form-item>	
				</el-col>
      </el-row>
			<el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="当前位置:">
						<span>{{moreDialogData.position}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="入库人:">
						<span>{{moreDialogData.inOptName}}</span>
					</el-form-item>	
				</el-col>
				<el-col :span="6">
					<el-form-item label="入库时间:">
						<span>{{moreDialogData.inOptTime}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="出库人:">
						<span>{{moreDialogData.outOptName}}</span>
					</el-form-item>	
				</el-col>
      </el-row>
			<el-row :gutter="20">
        <el-col :span="6">
					<el-form-item label="出库时间:">
						<span>{{moreDialogData.outOptTime}}</span>
					</el-form-item>	
				</el-col>
        <el-col :span="6">
					<el-form-item label="备注:">
						<span>{{moreDialogData.remark}}</span>
					</el-form-item>	
				</el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>

<script>
export default {
  props: {
    moreDialogData: {
      type: Object,
      default() {
        return null
      }
    },
		moreDialogType: {
			type: Number,
			default() {
				return 1
			}
		}
  },
  data() {
    return {};
  },
  methods: {
    beforeClose() {
      this.$emit("close");
    },
  },
};
</script>

<style scoped>
	
</style>
